package server;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * Interface to be implemented for RMI.
 * @author ernesta
 */
public interface ServerInterface extends Remote {
    public int checkForConflict(String filename, String hash, long lastSave) throws RemoteException;
    
    public long getCommitTime(String filename) throws RemoteException;
    public long getLockTime(String filename) throws RemoteException;
    public String getAuthor(String filename) throws RemoteException;
    public String getLocker(String filename) throws RemoteException;
    
    public boolean checkout(String filename, String username) throws RemoteException;
    public boolean checkin(String filename, String username) throws RemoteException;
    
    public void testDB(String filename, String username) throws RemoteException;
}
